package animix.blue.server.log.controller;

import animix.blue.server.common.bean.pojo.Result;
import animix.blue.server.log.service.LogOperationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Api(description = "操作日志API")
public class LogOperationController {

    @Autowired
    private LogOperationService logOperationService;

    @ApiOperation(value = "查询操作日志", notes = "根据条件查询，返回操作日志列表")
    @GetMapping("/log/operation")
    public Result list(@RequestParam Map<String, Object> para) {
        return logOperationService.list(para);
    }
}
